package com.ruoyi.db.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据库模型之信息对象 db_table_column
 * 
 * @author ruoyi
 * @date 2022-07-10
 */
public class DbTableColumn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 表名 */
    @Excel(name = "表名")
    private String tableName;

    /** 列名 */
    @Excel(name = "列名")
    private String columnName;

    /** 列类型 */
    @Excel(name = "列类型")
    private String columnType;

    /** 列长度 */
    @Excel(name = "列长度")
    private String columnLength;

    /** 非空约束 */
    @Excel(name = "非空约束")
    private String columnNotnull;

    /** 自动记录时间(Y代表1,N代表否) */
    @Excel(name = "自动记录时间(Y代表1,N代表否)")
    private String columnAutotime;

    /** 默认值 */
    @Excel(name = "默认值")
    private String columnDefault;

    /** 列注释 */
    @Excel(name = "列注释")
    private String columnComment;

    /** 状态（0正常 1停用） */
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 创建者ID */
    private String createId;

    /** 更新者ID */
    private String updateId;

    /** 乐观锁 */
    private Integer version;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTableName(String tableName) 
    {
        this.tableName = tableName;
    }

    public String getTableName() 
    {
        return tableName;
    }
    public void setColumnName(String columnName) 
    {
        this.columnName = columnName;
    }

    public String getColumnName() 
    {
        return columnName;
    }
    public void setColumnType(String columnType) 
    {
        this.columnType = columnType;
    }

    public String getColumnType() 
    {
        return columnType;
    }
    public void setColumnLength(String columnLength) 
    {
        this.columnLength = columnLength;
    }

    public String getColumnLength() 
    {
        return columnLength;
    }
    public void setColumnNotnull(String columnNotnull) 
    {
        this.columnNotnull = columnNotnull;
    }

    public String getColumnNotnull() 
    {
        return columnNotnull;
    }
    public void setColumnAutotime(String columnAutotime) 
    {
        this.columnAutotime = columnAutotime;
    }

    public String getColumnAutotime() 
    {
        return columnAutotime;
    }
    public void setColumnDefault(String columnDefault) 
    {
        this.columnDefault = columnDefault;
    }

    public String getColumnDefault() 
    {
        return columnDefault;
    }
    public void setColumnComment(String columnComment) 
    {
        this.columnComment = columnComment;
    }

    public String getColumnComment() 
    {
        return columnComment;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setCreateId(String createId) 
    {
        this.createId = createId;
    }

    public String getCreateId() 
    {
        return createId;
    }
    public void setUpdateId(String updateId) 
    {
        this.updateId = updateId;
    }

    public String getUpdateId() 
    {
        return updateId;
    }
    public void setVersion(Integer version) 
    {
        this.version = version;
    }

    public Integer getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tableName", getTableName())
            .append("columnName", getColumnName())
            .append("columnType", getColumnType())
            .append("columnLength", getColumnLength())
            .append("columnNotnull", getColumnNotnull())
            .append("columnAutotime", getColumnAutotime())
            .append("columnDefault", getColumnDefault())
            .append("columnComment", getColumnComment())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createId", getCreateId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateId", getUpdateId())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("version", getVersion())
            .toString();
    }
}
